<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>My Account</title>
</head>
<body>

    <div th:replace="common/Top"></div>

    <div id="Content">
      <div id="Catalog">
        <form method="post" action="/account/updateAccount">
          <h3>Account Information</h3>
          <table>
            <tr>
              <td>First name:</td>
              <td><input type="text" name="account.firstName" th:value="${session.account.username}"/></td>
            </tr>
            <tr>
              <td>Last name:</td>
              <td><input type="text" name="account.lastName" th:value="${session.account.lastName}"/></td>
            </tr>
            <tr>
              <td>Email:</td>
              <td><input type="text" size="40" name="account.email" th:value="${session.account.email}"/></td>
            </tr>
            <tr>
              <td>Phone:</td>
              <td><input type="text" name="account.phone" th:value="${session.account.phone}"/></td>
            </tr>
            <tr>
              <td>Address 1:</td>
              <td><input type="text" size="40" name="account.address1" th:value="${session.account.address1}"/></td>
            </tr>
            <tr>
              <td>Address 2:</td>
              <td><input type="text" size="40" name="account.address2" th:value="${session.account.address2}"/></td>
            </tr>
            <tr>
              <td>City:</td>
              <td><input type="text" name="account.city" th:value="${session.account.city}"/></td>
            </tr>
            <tr>
              <td>State:</td>
              <td><input type="text" size="4" name="account.state" th:value="${session.account.state}"/></td>
            </tr>
            <tr>
              <td>Zip:</td>
              <td><input type="text" size="10" name="account.zip" th:value="${session.account.zip}"/></td>
            </tr>
            <tr>
              <td>Country:</td>
              <td><input type="text" size="15" name="account.country" th:value="${session.account.country}"/></td>
            </tr>
          </table>


          <h3>Profile Information</h3>

          <table>
            <tr>
              <td>Language Preference:</td>
              <td>
                <select name="account.languagePreference" th:value="${session.account.languagePreference}">
                  <option value="English">English</option>
                  <option value="Chinese">Chinese</option>
                  <option value="Japanese">Japanese</option>
                </select>
              </td>
            </tr>
            <tr>
              <td>Favourite Category:</td>
              <td>
                <select name="favouriteCategoryId" th:value="${session.account.favouriteCategoryId}">
                  <option value="BIRDS">Birds</option>
                  <option value="FISH">Fish</option>
                  <option value="DOGS">Dogs</option>
                  <option value="CATS">Cats</option>
                  <option value="REPTILES">Reptiles</option>
                </select>
              </td>
            </tr>

            <tr>
              <td>Enable MyList</td>
              <td><input type="checkbox" name="account.listOption" th:checked="${session.account.listOption}"/></td>
            </tr>
            <tr>
              <td>Enable MyBanner</td>
              <td><input type="checkbox" name="account.bannerOption" th:checked="${session.account.bannerOption}"/></td>
            </tr>
          </table>
          <input type="submit" name="newAccount" value="Update Account Information" />
        </form>
      </div>
    </div>

    <div th:replace="common/Bottom"></div>
</body>
</html>